package com.youlu.campus.entity.universitytimetable;


import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户打卡签到
 */
@Getter
@Setter
@Document(collection = "user_sign_in")
@CompoundIndexes({
        @CompoundIndex(name = "user_signin_comIdx",def = "{'userId':-1,'activityId':-1,'signInDate':-1}",
                unique = true)
})
public class UserSignIn extends EntityBase {

    private String userId;

    private String activityId;

    private Integer signInDate;



}
